package com.bestcem.xm.user.service.third;

import com.bestcem.xm.common.core.domain.web.ServiceResult;
import com.bestcem.xm.user.service.dto.third.WenJuanUserInfoDTO;

/**
 * 问卷网服务
 *
 * @author qiongyu.cui <qiongyu.cui@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/4 17:43
 */
public interface WenJuanService {

    /**
     * 获取token信息
     *
     * @return com.bestcem.xm.util.ServiceResult<java.lang.String>
     * @author cuiqiongyu <qiongyu.cui@idiaoyan.cn>
     * @date 2022/03/04 17:45
     */
    ServiceResult<String> getToken();

    /**
     * 获取问卷网用户信息
     *
     * @param code code
     * @return com.bestcem.xm.util.ServiceResult<com.bestcem.xm.user.service.dto.third.WenJuanUserInfoDTO>
     * @author cuiqiongyu <qiongyu.cui@idiaoyan.cn>
     * @date 2022/03/04 17:48
     */
    ServiceResult<WenJuanUserInfoDTO> getUserInfo(String code);

}
